package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.Mdzx;
import cn.stylefeng.guns.sys.modular.system.model.params.MdzxParam;
import cn.stylefeng.guns.sys.modular.system.model.result.MdzxResult;
import cn.stylefeng.guns.sys.modular.system.model.result.ZxTzqkResult;
import cn.stylefeng.guns.sys.modular.system.model.result.ZxTzqkViewResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 门店装修表 服务类
 * </p>
 *
 * @author jiangge
 * @since 2020-11-02
 */
public interface MdzxService extends IService<Mdzx> {

    List<MdzxResult> customList(MdzxParam paramCondition);

    /**
     * 新增
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    ResponseData add(MdzxParam param);

    /**
     * 删除
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    ResponseData delete(MdzxParam param);

    /**
     * 更新
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    ResponseData update(MdzxParam param);

    ResponseData updateByParam(MdzxParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    MdzxResult findBySpec(MdzxParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    List<MdzxResult> findListBySpec(MdzxParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    LayuiPageInfo findPageBySpec(MdzxParam param);

    LayuiPageInfo findPageBySpecDz(MdzxParam param);

    void calculateChengbenAndYusuan(Long btyZxMdzxId, BigDecimal danjia);

    ResponseData updateAndcalculateChengbenAndYusuan(MdzxParam param);

    ResponseEntity<byte[]> exportExcel(HttpServletRequest request, HttpServletResponse response, Long btyZxMdzxId);

    ResponseEntity<byte[]> exportExcel2(HttpServletRequest request, HttpServletResponse response, Long btyZxMdzxId);

    List<ZxTzqkViewResult> getInvestmentSituation(Long btyZxMdzxId);

    List<ZxTzqkViewResult> getTzqk(Long btyZxMdzxId);

    ResponseData copyZx(MdzxParam param);

    ResponseData copyZxYuSuan(MdzxParam param);

    List<Map<String, Object>> mdzxList(MdzxParam paramCondition);

    List<Map<String, Object>> ghsList(MdzxParam paramCondition);

    ResponseData copyYusn(MdzxParam param);

    ResponseData editYujiTouzi(MdzxParam param);

    ResponseData yusuanLockEdit(MdzxParam param);

    ResponseEntity<byte[]> exportExcelWithGongshi(HttpServletRequest request, HttpServletResponse response, Long btyZxMdzxId);

    ResponseData lock(List<MdzxParam> params);

    ResponseEntity<byte[]> exportMx(HttpServletRequest request, HttpServletResponse response, MdzxParam param);

    List<ZxTzqkViewResult> getTzqkDgd(Long btyZxMdzxId);

    List<ZxTzqkResult>mdList(Long btyZxMdzxId);

    List<MdzxResult> dzExportList(MdzxParam param);

    List<MdzxResult>listJgcDetail(Long btyZxMdzxId);

    List<MdzxResult>ghsLockList(Long btyZxMdzxId);

    ResponseData getGhsLock(Long btyZxMdzxId);
}
